-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Allow to enable the native profile via Maven property #42056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to enable the native profile via Maven property #42056
Conversation
In some cases it could be desired to enable the `native` profile directly from Maven, so that the caller of Maven does not need to call Maven with `-Pnative`. To enable this behavior, I added an activation section to the generated POM with the profile definition.
Please let me know, if this feature has a chance to get accepted. If yes, I will also include the changes required for native tests. |
Seems sensible to me. Our resident Maven expert is away at the moment. I'll flag this one for team attention to see if anyone can foresee any problems. |
Can you expand a bit more on that? We don't really want to expand what our parent does without a good reason of doing so. Also I am not sure it would work in child projects as setting the property would be too late for the profile to evaluate. Have you tested that? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as outdated.
This comment was marked as outdated.
I am going to close this as what's been suggested does not work for me. If the feedback is provided and it turns out I was wrong we can reopen this one. |
Hi, sorry, currently I am quite busy. I will come back with a more details description. |
In some cases it could be desired to enable the
native
profile directly from Maven, so that the caller of Maven does not need to call Maven with-Pnative
. To enable this behavior, I added an activation section to the generated POM with the profile definition.